import styled from 'styled-components'

export const HNSongListWrap = styled.div `
  width: 558px;
  overflow: scroll;
  ::-webkit-scrollbar {
    width: 6px; 
    height: 0px;
    background: #000;
    z-index: 99;
    opacity: .5;
  }
  ::-webkit-scrollbar-thumb{
    cursor: pointer;
    background: rgba(66,66,65,0.8);
    border: 1px solid rgba(106,106,106,0.8);
    width: 4px;
    border-radius: 5px;
  }

  .no-song{
    position: relative;
    width:558px;
    height: 86px;
    line-height:86px;
    text-align: center;
    margin-top:80px;
    color: #aaa;
    .icon{
      position: absolute;
      display: inline-block;
      width: 36px;
      height: 29px;
      margin-right: 3px;
      background-position: -138px 0;
      top: 26px;
      left: 177px;
    }
  }
`
export const HNSongListContent = styled.div`
  margin-top: 5px;
  .item{
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 30px;
    height: 28px;
    cursor: pointer;
    line-height:28px;
    .play,
    .link{
      position: absolute;
      background: url(${require("@/assets/img/playlist_sprite.png").default}) no-repeat;
      top: 6px;
    }
    .play{
      display: none;
      width: 10px;
      height: 13px;
      background-position: -182px 0;
      left: -20px;
    }
    .name{
      width: 266px;
      color: #CCCCCC;
    }
    .artist{
      margin-left: 50px;
      .artist1{
        display: inline-block;
        width: 80px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        color: #9B9B9B;
      }
      .time{
        position: absolute;
        display: inline-block;
        width: 10px;
        color: #666666;
        margin-left:10px;
      }
    }
    .link{
      width: 14px;
      height: 14px;
      background-position: -80px 0px;
      top: 1px;
      right: 2px;
    }
  }
  .item:hover .name,
  .item:hover .artist .artist1,
  .item:hover .artist .time{
    color: #FFFFFF;
  }
  .active .play{
    display: inline-block;
  }
`